From: Keir Fraser Date: Thu, 24 Apr 2008 13:33:42 +0000 (+0100) Subject: vmx: Fix address of EPT identity-map pagetable that is passed from the X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14215^2~123 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=d5a22fa12fa982a6cffc79123fbc834fcfbe0d38;p=xen.git vmx: Fix address of EPT identity-map pagetable that is passed from the domain builder down to the hypervisor. Signed-off-by: Keir Fraser --- diff --git a/tools/libxc/xc_hvm_build.c b/tools/libxc/xc_hvm_build.c index ae3178b0e1..30ac5b4951 100644 --- a/tools/libxc/xc_hvm_build.c +++ b/tools/libxc/xc_hvm_build.c @@ -298,7 +298,7 @@ static int setup_guest(int xc_handle, _PAGE_ACCESSED | _PAGE_DIRTY | _PAGE_PSE); munmap(ident_pt, PAGE_SIZE); xc_set_hvm_param(xc_handle, dom, HVM_PARAM_IDENT_PT, - special_page_nr + SPECIALPAGE_IDENT_PT); + (special_page_nr + SPECIALPAGE_IDENT_PT) << PAGE_SHIFT); /* Insert JMP instruction at address 0x0 to reach entry point. */ entry_eip = elf_uval(&elf, elf.ehdr, e_entry);